﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Controls="clr-namespace:PSE.Framework.UI.Controls.SmartClient;assembly=PSE.Framework.UI.Controls">

    <!--
        Esta animação só está aqui porque o Blend não aceita DynamicResource com Storyboard
    -->

    <!--BEGIN TEXTBOX-->
    <Storyboard x:Key="AnimationTextBoxWatermarkEnter" TargetName="Watermark" TargetProperty="Opacity">
        <DoubleAnimation Duration="0:0:0.3" To="0.4"/>
    </Storyboard>

    <Storyboard x:Key="AnimationTextBoxWatermarkLeave" TargetName="Watermark" TargetProperty="Opacity">
        <DoubleAnimation Duration="0:0:0.4"/>
    </Storyboard>

    <Storyboard x:Key="AnimationTextBoxWatermarkTextEnter" TargetName="Watermark" TargetProperty="Opacity">
        <DoubleAnimation Duration="0:0:0.3" From="0.4" To="0"/>
    </Storyboard>

    <Storyboard x:Key="AnimationTextBoxWatermarkTextLeave" TargetName="Watermark" TargetProperty="Opacity">
        <DoubleAnimation Duration="0:0:0.4"/>
    </Storyboard>
    <!--END TEXTBOX-->

    <!--BEGIN TEXTBOX-->
    <Style x:Key="ControlTextBoxBase" TargetType="{x:Type Controls:TextBox}">
        <Setter Property="BorderBrush" Value="{DynamicResource BrushTextBoxBorder}"/>
        <Setter Property="Foreground" Value="{DynamicResource BrushTextBoxForeground}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
        <Setter Property="Padding" Value="5,4,6,0"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="AllowDrop" Value="True"/>
        <Setter Property="FontFamily" Value="Tahoma"/>
        <Setter Property="FontSize" Value="11"/>
        <Setter Property="FontWeight" Value="Normal"/>
        <Setter Property="FontStyle" Value="Normal"/>
        <Setter Property="Height" Value="21"/>
        <Setter Property="Width" Value="100"/>
        <Setter Property="TextWrapping" Value="NoWrap"/>
        <Setter Property="TextAlignment" Value="Left"/>
        <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
        <Setter Property="Background" Value="{DynamicResource BrushTextBoxBackground}"/>
        <Setter Property="Border.CornerRadius" Value="4"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Controls:TextBox}">
                    <Border CornerRadius="{TemplateBinding Border.CornerRadius}" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                        <Grid>
                            <Border x:Name="Border" SnapsToDevicePixels="False" CornerRadius="{TemplateBinding Border.CornerRadius}" Background="{TemplateBinding Background}">
                                <Label x:Name="Watermark" FontFamily="{TemplateBinding FontFamily}" FontSize="{TemplateBinding FontSize}" FontWeight="{TemplateBinding FontWeight}" Background="Transparent" Content="{TemplateBinding WatermarkText}" Foreground="{DynamicResource BrushTextBoxWatermarkForeground}" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" Padding="2,1,1,1" Opacity="0.8" FontStyle="Italic"/>
                            </Border>
                            <Controls:ScrollViewer x:Name="PART_ContentHost" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" RenderTransformOrigin="0.5,0.5" Height="{TemplateBinding Height}" Width="{TemplateBinding Width}"/>
                        </Grid>
                    </Border>
                    <ControlTemplate.Triggers>
                        <!--<Trigger Property="IsReadOnly" Value="True">
                            <Setter Property="BorderBrush" Value="{DynamicResource BrushTextBoxBorderDisabled}" TargetName="Border"/>
                            <Setter Property="Background" Value="{DynamicResource BrushTextBoxBackgroundDisabled}" TargetName="Border"/>
                            <Setter Property="Foreground" Value="{DynamicResource BrushTextBoxForegroundDisabled}"/>
                        </Trigger>-->
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter Property="BorderBrush" Value="{DynamicResource BrushTextBoxBorderDisabled}" />
                            <Setter Property="Background" Value="{DynamicResource BrushTextBoxBackgroundDisabled}" />
                            <Setter Property="Foreground" Value="{DynamicResource BrushTextBoxForegroundDisabled}"/>
                        </Trigger>
                        <Trigger Property="TextWrapping" Value="Wrap">
                            <Setter Property="Height" Value="50"/>
                            <Setter Property="AcceptsReturn" Value="True"/>
                            <Setter Property="VerticalAlignment" Value="Top" TargetName="Watermark"/>
                            <Setter Property="Margin" Value="0,2.2,0,0" TargetName="Watermark"/>
                        </Trigger>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="HasText" Value="False" />
                                <Condition Property="IsFocused" Value="True" />
                            </MultiTrigger.Conditions>
                            <MultiTrigger.EnterActions>
                                <BeginStoryboard Storyboard="{StaticResource AnimationTextBoxWatermarkEnter}"/>
                            </MultiTrigger.EnterActions>
                            <MultiTrigger.ExitActions>
                                <BeginStoryboard Storyboard="{StaticResource AnimationTextBoxWatermarkLeave}"/>
                            </MultiTrigger.ExitActions>
                        </MultiTrigger>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="HasText" Value="True" />
                            </MultiTrigger.Conditions>
                            <MultiTrigger.EnterActions>
                                <BeginStoryboard Storyboard="{StaticResource AnimationTextBoxWatermarkTextEnter}"/>
                            </MultiTrigger.EnterActions>
                            <MultiTrigger.ExitActions>
                                <BeginStoryboard Storyboard="{StaticResource AnimationTextBoxWatermarkTextLeave}"/>
                            </MultiTrigger.ExitActions>
                        </MultiTrigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ErrorTemplate">
            <Setter.Value>
                <ControlTemplate>
                    <Border BorderBrush="{DynamicResource BrushTextBoxBorderError}" BorderThickness="1" CornerRadius="4" HorizontalAlignment="Left" Width="{Binding ActualWidth, ElementName=PART_Content}" Height="{Binding ActualHeight, ElementName=PART_Content}">
                        <AdornedElementPlaceholder x:Name="PART_Content" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="-1"/>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <!--END TEXTBOX-->

    <Style TargetType="{x:Type Controls:CepTextBox}" BasedOn="{StaticResource ControlTextBoxBase}"/>
    <Style TargetType="{x:Type Controls:CnpjTextBox}" BasedOn="{StaticResource ControlTextBoxBase}"/>
    <Style TargetType="{x:Type Controls:CpfTextBox}" BasedOn="{StaticResource ControlTextBoxBase}"/>
    <Style TargetType="{x:Type Controls:EmailTextBox}" BasedOn="{StaticResource ControlTextBoxBase}"/>
    <Style TargetType="{x:Type Controls:TextBox}" BasedOn="{StaticResource ControlTextBoxBase}"/>
    <Style TargetType="{x:Type Controls:FilteredTextBox}" BasedOn="{StaticResource ControlTextBoxBase}"/>
    <Style TargetType="{x:Type Controls:CvmTextBox}" BasedOn="{StaticResource ControlTextBoxBase}"/>
    <Style TargetType="{x:Type Controls:InvestidorEstrangeiroTextBox}" BasedOn="{StaticResource ControlTextBoxBase}"/>
    
    <!--Numéricos-->
    <Style TargetType="{x:Type Controls:DecimalTextBox}" BasedOn="{StaticResource ControlTextBoxBase}">
        <Setter Property="TextAlignment" Value="Right"/>
    </Style>
    <Style TargetType="{x:Type Controls:DoubleTextBox}" BasedOn="{StaticResource ControlTextBoxBase}">
        <Setter Property="TextAlignment" Value="Right"/>
    </Style>
    <Style TargetType="{x:Type Controls:Int16TextBox}" BasedOn="{StaticResource ControlTextBoxBase}">
        <Setter Property="TextAlignment" Value="Right"/>
    </Style>
    <Style TargetType="{x:Type Controls:Int32TextBox}" BasedOn="{StaticResource ControlTextBoxBase}">
        <Setter Property="TextAlignment" Value="Right"/>
    </Style>
    <Style TargetType="{x:Type Controls:Int64TextBox}" BasedOn="{StaticResource ControlTextBoxBase}">
        <Setter Property="TextAlignment" Value="Right"/>
    </Style>
    
    <!--**************************************************************************************
    Estilos dos controles do DataGrid 
    **************************************************************************************-->

    <Style x:Key="ControlDataGridTextBox" TargetType="{x:Type Controls:TextBox}" BasedOn="{StaticResource ControlTextBoxBase}">
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="Width" Value="{Binding ActualWidth, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type FrameworkElement}}}"/>
        <Setter Property="HorizontalAlignment" Value="Stretch"/>
        <Setter Property="Padding" Value="1,4.5,1.5,1"/>
        <Setter Property="Border.CornerRadius" Value="0"/>
        <Setter Property="ErrorTemplate">
            <Setter.Value>
                <ControlTemplate>
                    <Border BorderBrush="{DynamicResource BrushTextBoxBorderError}" BorderThickness="1" CornerRadius="0" HorizontalAlignment="Left" Width="{Binding ActualWidth, ElementName=PART_Content}" Height="{Binding ActualHeight, ElementName=PART_Content}">
                        <AdornedElementPlaceholder x:Name="PART_Content" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="-1"/>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="ControlDataGridCepTextBox" TargetType="{x:Type Controls:CepTextBox}" BasedOn="{StaticResource ControlDataGridTextBox}"/>
    <Style x:Key="ControlDataGridCnpjTextBox" TargetType="{x:Type Controls:CnpjTextBox}" BasedOn="{StaticResource ControlDataGridTextBox}"/>
    
    <Style x:Key="ControlDataGridCpfTextBox" TargetType="{x:Type Controls:CpfTextBox}" BasedOn="{StaticResource ControlDataGridTextBox}"/>
    <Style x:Key="ControlDataGridEmailTextBox" TargetType="{x:Type Controls:EmailTextBox}" BasedOn="{StaticResource ControlDataGridTextBox}"/>
    <Style x:Key="ControlDataGridFilteredTextBox" TargetType="{x:Type Controls:FilteredTextBox}" BasedOn="{StaticResource ControlDataGridTextBox}"/>

    <Style x:Key="ControlDataGridCvmTextBox" TargetType="{x:Type Controls:CvmTextBox}" BasedOn="{StaticResource ControlDataGridTextBox}"/>
    <Style x:Key="ControlDataGridInvestidorEstrangeiroTextBox" TargetType="{x:Type Controls:InvestidorEstrangeiroTextBox}" BasedOn="{StaticResource ControlDataGridTextBox}"/>
    
    <!--Numéricos-->
    <Style x:Key="ControlDataGridDecimalTextBox" TargetType="{x:Type Controls:DecimalTextBox}" BasedOn="{StaticResource ControlDataGridTextBox}">
        <Setter Property="TextAlignment" Value="Right"/>
        <Setter Property="Border.CornerRadius" Value="0"/>
    </Style>
    <Style x:Key="ControlDataGridDoubleTextBox" TargetType="{x:Type Controls:DoubleTextBox}" BasedOn="{StaticResource ControlDataGridTextBox}">
        <Setter Property="TextAlignment" Value="Right"/>
        <Setter Property="Border.CornerRadius" Value="0"/>
    </Style>
    <Style x:Key="ControlDataGridInt16TextBox" TargetType="{x:Type Controls:Int16TextBox}" BasedOn="{StaticResource ControlDataGridTextBox}">
        <Setter Property="TextAlignment" Value="Right"/>
        <Setter Property="Border.CornerRadius" Value="0"/>
    </Style>
    <Style x:Key="ControlDataGridInt32TextBox" TargetType="{x:Type Controls:Int32TextBox}" BasedOn="{StaticResource ControlDataGridTextBox}">
        <Setter Property="TextAlignment" Value="Right"/>
        <Setter Property="Border.CornerRadius" Value="0"/>
    </Style>
    <Style x:Key="ControlDataGridInt64TextBox" TargetType="{x:Type Controls:Int64TextBox}" BasedOn="{StaticResource ControlDataGridTextBox}">
        <Setter Property="TextAlignment" Value="Right"/>
        <Setter Property="Border.CornerRadius" Value="0"/>
    </Style>

    <!--**************************************************************************************
    Estilos dos controles com destaque
    **************************************************************************************-->
    <!--Begin Destaque-->
    <Style x:Key="ControlTextBoxBaseHeadline" TargetType="{x:Type Controls:TextBox}" BasedOn="{StaticResource ControlTextBoxBase}">
        <Setter Property="Background" Value="{DynamicResource BrushTextBoxBackgroundHeadline}"/>
        <Setter Property="BorderBrush" Value="{DynamicResource BrushTextBox1}"/>
        <Setter Property="Foreground" Value="{DynamicResource BrushTextBox2}"/>
        <Setter Property="IsReadOnly" Value="True"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
        <Setter Property="Padding" Value="5,1,6,0"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="AllowDrop" Value="True"/>
        <Setter Property="FontFamily" Value="Tahoma"/>
        <Setter Property="FontSize" Value="11"/>
        <Setter Property="FontWeight" Value="Normal"/>
        <Setter Property="FontStyle" Value="Normal"/>
        <Setter Property="Height" Value="18"/>
        <Setter Property="Width" Value="100"/>
        <Setter Property="TextWrapping" Value="NoWrap"/>
        <Setter Property="TextAlignment" Value="Left"/>
        <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Controls:TextBox}">
                    <Border CornerRadius="4" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" BorderThickness="1" SnapsToDevicePixels="False">
                        <Controls:ScrollViewer x:Name="PART_ContentHost" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" RenderTransformOrigin="0.5,0.5" Height="{TemplateBinding Height}" Width="{TemplateBinding Width}"/>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="ControlCepTextBoxHeadline" TargetType="{x:Type Controls:CepTextBox}" BasedOn="{StaticResource ControlTextBoxBaseHeadline}"/>
    <Style x:Key="ControlCnpjTextBoxHeadline" TargetType="{x:Type Controls:CnpjTextBox}" BasedOn="{StaticResource ControlTextBoxBaseHeadline}"/>
    <Style x:Key="ControlCpfTextBoxHeadline" TargetType="{x:Type Controls:CpfTextBox}" BasedOn="{StaticResource ControlTextBoxBaseHeadline}"/>
    <Style x:Key="ControlEmailTextBoxHeadline" TargetType="{x:Type Controls:EmailTextBox}" BasedOn="{StaticResource ControlTextBoxBaseHeadline}"/>
    <Style x:Key="ControlTextBoxHeadline" TargetType="{x:Type Controls:TextBox}" BasedOn="{StaticResource ControlTextBoxBaseHeadline}"/>
    <Style x:Key="ControlFilteredTextBoxHeadline" TargetType="{x:Type Controls:FilteredTextBox}" BasedOn="{StaticResource ControlTextBoxBaseHeadline}"/>

    <Style x:Key="ControlCvmTextBoxHeadline" TargetType="{x:Type Controls:CvmTextBox}" BasedOn="{StaticResource ControlTextBoxBaseHeadline}"/>
    <Style x:Key="ControlInvestidorEstrangeiroTextBoxHeadline" TargetType="{x:Type Controls:InvestidorEstrangeiroTextBox}" BasedOn="{StaticResource ControlTextBoxBaseHeadline}"/>
    
    
    <!--Numéricos-->
    <Style x:Key="ControlDecimalTextBoxHeadline" TargetType="{x:Type Controls:DecimalTextBox}" BasedOn="{StaticResource ControlTextBoxBaseHeadline}">
        <Setter Property="TextAlignment" Value="Right"/>

    </Style>
    <Style x:Key="ControlDoubleTextBoxHeadline" TargetType="{x:Type Controls:DoubleTextBox}" BasedOn="{StaticResource ControlTextBoxBaseHeadline}">
        <Setter Property="TextAlignment" Value="Right"/>

    </Style>
    <Style x:Key="ControlInt16TextBoxHeadline" TargetType="{x:Type Controls:Int16TextBox}" BasedOn="{StaticResource ControlTextBoxBaseHeadline}">
        <Setter Property="TextAlignment" Value="Right"/>

    </Style>
    <Style x:Key="ControlInt32TextBoxHeadline" TargetType="{x:Type Controls:Int32TextBox}" BasedOn="{StaticResource ControlTextBoxBaseHeadline}">
        <Setter Property="TextAlignment" Value="Right"/>

    </Style>
    <Style x:Key="ControlInt64TextBoxHeadline" TargetType="{x:Type Controls:Int64TextBox}" BasedOn="{StaticResource ControlTextBoxBaseHeadline}">
        <Setter Property="TextAlignment" Value="Right"/>

    </Style>
    <!--End Destaque-->
    
    <!--BEGIN CLIENTE ESPECIAL-->
    
    <!--
        As Triggers desta sessão foram copiadas do controle acima por motivo de urgencia
        TODO: Descobrir uma forma de referenciar as triggers em um resource comum, de forma a reduzir a duplicidade
    -->
    
      <!--Normal-->
    <Style x:Key="ControlTextBoxSpecialClient" TargetType="{x:Type Controls:TextBox}" BasedOn="{StaticResource ControlTextBoxBase}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Controls:TextBox}">
                    <Border CornerRadius="{TemplateBinding Border.CornerRadius}" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                        <Grid>
                            <Border x:Name="Border" SnapsToDevicePixels="False" CornerRadius="{TemplateBinding Border.CornerRadius}" Background="{TemplateBinding Background}">
                                <Label x:Name="Watermark" FontFamily="{TemplateBinding FontFamily}" FontSize="{TemplateBinding FontSize}" FontWeight="{TemplateBinding FontWeight}" Background="Transparent" Content="{TemplateBinding WatermarkText}" Foreground="{DynamicResource BrushTextBoxWatermarkForeground}" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" Padding="2,1,1,1" Opacity="0.8" FontStyle="Italic"/>
                            </Border>
                            <Grid Width="{TemplateBinding Width}" Margin="3,0,3,0">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto" />
                                    <ColumnDefinition Width="*"/>
                                </Grid.ColumnDefinitions>

                                <Path x:Name="TextBoxIconSpecialClient" Grid.Column="0" Width="12.171" Height="12.823" Stretch="Fill" Fill="{DynamicResource BrushSpecialClientIcon}" Data="{DynamicResource IconSpecialClient}" />
                                <Controls:ScrollViewer x:Name="PART_ContentHost" Grid.Column="1" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" RenderTransformOrigin="0.5,0.5" Height="{TemplateBinding Height}" Width="Auto" Margin="0,0,3,0" />
                            </Grid>
                        </Grid>
                    </Border>
                    <ControlTemplate.Triggers>
                        <!--<Trigger Property="IsReadOnly" Value="True">
                            <Setter Property="BorderBrush" Value="{DynamicResource BrushTextBoxBorderDisabled}" TargetName="Border"/>
                            <Setter Property="Background" Value="{DynamicResource BrushTextBoxBackgroundDisabled}" TargetName="Border"/>
                            <Setter Property="Foreground" Value="{DynamicResource BrushTextBoxForegroundDisabled}"/>
                        </Trigger>-->
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter Property="BorderBrush" Value="{DynamicResource BrushTextBoxBorderDisabled}" TargetName="Border"/>
                            <Setter Property="Background" Value="{DynamicResource BrushTextBoxBackgroundDisabled}" TargetName="Border"/>
                            <Setter Property="Foreground" Value="{DynamicResource BrushTextBoxForegroundDisabled}"/>
                        </Trigger>
                        <Trigger Property="TextWrapping" Value="Wrap">
                            <Setter Property="Height" Value="50"/>
                            <Setter Property="AcceptsReturn" Value="True"/>
                            <Setter Property="VerticalAlignment" Value="Top" TargetName="Watermark"/>
                            <Setter Property="Margin" Value="0,2.2,0,0" TargetName="Watermark"/>
                            <Setter Property="VerticalAlignment" Value="Top" TargetName="TextBoxIconSpecialClient" />
                            <Setter Property="Margin" Value="0,2.2,0,0" TargetName="TextBoxIconSpecialClient"/>
                        </Trigger>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="HasText" Value="False" />
                                <Condition Property="IsFocused" Value="True" />
                            </MultiTrigger.Conditions>
                            <MultiTrigger.EnterActions>
                                <BeginStoryboard Storyboard="{StaticResource AnimationTextBoxWatermarkEnter}"/>
                            </MultiTrigger.EnterActions>
                            <MultiTrigger.ExitActions>
                                <BeginStoryboard Storyboard="{StaticResource AnimationTextBoxWatermarkLeave}"/>
                            </MultiTrigger.ExitActions>
                        </MultiTrigger>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="HasText" Value="True" />
                            </MultiTrigger.Conditions>
                            <MultiTrigger.EnterActions>
                                <BeginStoryboard Storyboard="{StaticResource AnimationTextBoxWatermarkTextEnter}"/>
                            </MultiTrigger.EnterActions>
                            <MultiTrigger.ExitActions>
                                <BeginStoryboard Storyboard="{StaticResource AnimationTextBoxWatermarkTextLeave}"/>
                            </MultiTrigger.ExitActions>
                        </MultiTrigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    
      <!--Destaque-->
    <Style x:Key="ControlTextBoxSpecialClientHeadline" TargetType="{x:Type Controls:TextBox}" BasedOn="{StaticResource ControlTextBoxBaseHeadline}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Controls:TextBox}">
                    <Border CornerRadius="{TemplateBinding Border.CornerRadius}" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                        <Grid Width="{TemplateBinding Width}" Margin="3,0,3,0">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="*"/>
                            </Grid.ColumnDefinitions>
                            
                            <Path x:Name="TextBoxIconSpecialClient" Grid.Column="0" Width="12.171" Height="12.823" Stretch="Fill" Fill="{DynamicResource BrushSpecialClientIcon}" Data="{DynamicResource IconSpecialClient}" />
                            <Controls:ScrollViewer x:Name="PART_ContentHost" Grid.Column="1" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" RenderTransformOrigin="0.5,0.5" Height="{TemplateBinding Height}" Width="Auto" Margin="0,0,3,0"/>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    
    <!--END CLIENTE ESPECIAL-->
</ResourceDictionary>